package com.example.domain;

/**
 * @author Ann
 * @version v1.0
 * @ClassName UserEvent
 * @Description
 * @date Created in 2025/5/19
 **/
public class UserEvent {
    public String userId;
    public Integer amount;
    public Long timestamp; // Event time (epoch millis)

    public UserEvent() {}

    public UserEvent(String userId, Integer amount, Long timestamp) {
        this.userId = userId;
        this.amount = amount;
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return "UserEvent{" +
                "userId='" + userId + '\'' +
                ", amount=" + amount +
                ", timestamp=" + timestamp +
                '}';
    }
}
